{% if error %}
<h1>Error {{ error }}</h1>
{% endif %}

<h1>Project {{ project }} User {{ user }}</h1>
    <h2>Select Document</h2>

    {% if project.document_set.count %}
        {% for document in project.document_set.all %}
            <li><a href="{{ document.pk }}/">{{ document.name }}</a></li>
        {% endfor %}
    {% else %}
        <li>Sorry, no documents.</li>
    {% endif %}
   <h2>Create New Document</h2>
      <form method="post" action="">
      <br><label>New document name</label><input type="text" name="new_document"/>
      <br><input type="submit" value="Done"/> 
      </form>

<h2><a href="/rat/">Select a different project</h2>
<h2><a href="/accounts/profile/">Do some other RAT task</h2>
